<!DOCTYPE html>
<html lang="en" xmlns:th = "http://www.Thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<a th:href = "@{/user}">查询所有用户信息</a><br/>
<a th:href = "@{/user/1}">根据id查询所有用户信息</a><br/>
<form th:action = "@{/user}" method="post">
    用户名<input type = "text",name = "username"><br/>
    密码<input type = "password",name = "password"><br/>
    兴趣爱好<input type = "checkbox",name = "hobby" value="C++">C++
    <input type = "checkbox",name = "hobby" value="Java">Java
    <input type = "checkbox",name = "hobby" value="JavaScript">JavaScript<br/>
    <input type = "submit">
</form>

<form th:action = "@{/user}" method="post">
    <input type = "hidden" name = "_method" value = "PUT">
    用户名<input type = "text",name = "username"><br/>
    密码<input type = "password",name = "password"><br/>
    兴趣爱好<input type = "checkbox",name = "hobby" value="C++">C++
    <input type = "checkbox",name = "hobby" value="Java">Java
    <input type = "checkbox",name = "hobby" value="JavaScript">JavaScript<br/>
    <input type = "submit" value = "修改"><br/>
</form>

<form th:action = "@{/user}" method="post">
    <input type = "hidden" name = "_method" value = "DELETE">
    用户名<input type = "text",name = "username"><br/>
    密码<input type = "password",name = "password"><br/>
    兴趣爱好<input type = "checkbox",name = "hobby" value="C++">C++
    <input type = "checkbox",name = "hobby" value="Java">Java
    <input type = "checkbox",name = "hobby" value="JavaScript">JavaScript<br/>
    <input type = "submit" value = "删除"><br/>
</form>
</body>
</html>